package com.example.demo.bean;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "system.config")
public class SystemConfig {
    private static String ip;
    private static String port;
    private static String keyIndex;
    private static String keyValue;
    private static String containerName;
    private static String policyName;

    public static String getIp() {
        return ip;
    }

    public  void setIp(String ip) {
        SystemConfig.ip = ip;
    }

    public static String getPort() {
        return port;
    }

    public void setPort(String port) {
        SystemConfig.port = port;
    }

    public static String getKeyIndex() {
        return keyIndex;
    }

    public  void setKeyIndex(String keyIndex) {
        SystemConfig.keyIndex = keyIndex;
    }

    public static String getKeyValue() {
        return keyValue;
    }

    public  void setKeyValue(String keyValue) {
        SystemConfig.keyValue = keyValue;
    }

    public static String getContainerName() {
        return containerName;
    }

    public  void setContainerName(String containerName) {
        SystemConfig.containerName = containerName;
    }

    public static String getPolicyName() {
        return policyName;
    }

    public  void setPolicyName(String policyName) {
        SystemConfig.policyName = policyName;
    }
}
